package com.liuyucheng.idea_springboot.service;

import com.github.pagehelper.PageInfo;
import com.liuyucheng.idea_springboot.bean.DataInteraction;
import com.liuyucheng.idea_springboot.bean.LycDemoPo;
import com.liuyucheng.idea_springboot.util.PageQuery;
import com.liuyucheng.idea_springboot.util.ResultUtil;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface StockPileService {
    ResultUtil<List<Map<String, Object>>> initComboData();

    PageInfo table(PageQuery<DataInteraction> pageQuery);

    void exportExcel(PageQuery<DataInteraction> pageQuery, HttpServletResponse response);

    PageInfo demoTable(PageQuery<LycDemoPo> pageQuery);

    boolean saveOrUpdate(LycDemoPo po);

    boolean delete(String[] ids);

    Map<String,String> uploadFile(MultipartFile file);

    void downloadFile(String fileId, HttpServletResponse response);
}
